package com.lengxf.job.dynamicTask;


import com.lengxf.job.dynamicTask.finder.TaskTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Data
public class Task {

    private TaskTypeEnum type;

    private LocalDateTime startTime;


    public String getName() {
        return type.toString() + "|" + startTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    }

}
